﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="/WEB-INF/views/modules/commons/head.jsp" %>

    <title>节点模板管理</title>

    <!--节点模板管理css  -->
    <link rel="stylesheet" href="<s:url value="/assets/web/css/user/jdManger.css"></s:url>">
    <style>
        /* 公用边距 */
        #content-main {
            padding: 50px 20px 0;
            position: relative;
        }
    </style>
</head>
<body class="bgcolor">
<%@ include file="/WEB-INF/views/modules/commons/nav.jsp" %>
<%@ include file="/WEB-INF/views/modules/commons/menu.jsp" %>
<table></table>
<div class="av row J_mainContent" id="content-main">
    <%--下拉选择框--%>
    <div id="nodeType0" style="display: none;">${type}</div>
    <select name="role" id="chooses" onchange="window.location=this.value;">
        <option value="/NodeManage/go/list?nodeType=3" id="3">政府投资房建市政类</option>
        <option value="/NodeManage/go/list?nodeType=4" id="4">政府投资交通水利类</option>
        <option value="/NodeManage/go/list?nodeType=1" id="1">企业投资类</option>
        <option value="/NodeManage/go/list?nodeType=2" id="2">土地收储类</option>
    </select>
    <!-- 节点模板管理 -->
    <div class="user-node-manger">
        <c:forEach var="list" items="${list}">
            <div class="jd-block">
                <c:if test="${list.type == '1'}">
                    <p>
                    <div class="element1 left">
                        <div class="child1"></div>
                    </div>
                    <span class="total-title">${list.nodeId} ${list.nodeName}</span>
                    <button style="float: right" class="btn btn-sm btn-primary demo">新增节点</button>
                    </p>
                </c:if>
                <c:if test="${list.type == '2'}">
                <ul class="drop-list">
                    <li>
                            <span class="open">${list.nodeId} ${list.nodeName}&nbsp;&nbsp;&nbsp;
                                <em>∧</em>
                            </span>
                        <ul class="clear-list">
                            <li>
                                负责人：
                                <em>${list.resUser}</em>
                            </li>
                            <li>
                                经办人：
                                <em>${list.operatorUser}</em>
                            </li>
                            <li>
                                计划用时：
                                <input type="number" min="1" value="${list.planTime}">天
                            </li>
                            <li>
                                    <%--<input type="button" min="1" value="修改">--%>
                                <button class="btn btn-sm btn-info demo">修改节点</button>
                            </li>
                            <li>
                                    <%--<input type="button" min="1" value="删除">--%>
                                <button class="btn btn-sm btn-danger demo">删除节点</button>
                            </li>
                        </ul>
                    </li>
                    </c:if>
                </ul>
            </div>
        </c:forEach>
    </div>
</div>


<%@ include file="/WEB-INF/views/modules/commons/foot.jsp" %>

<!-- 节点模板管理js -->
<script src="<s:url value="/assets/web/js/user/user_jdmanger.js"></s:url>"></script>
<script>
    $(function () {
        //给下拉框设置selected值
        var type = $("#nodeType0").html();
        $("#chooses option[id='" + type + "']").prop("selected", true);

        $(".demo").click(function() {
            alert("该用户无权限。");
        })
    })
</script>
</body>
</html>